Optimal. Leaf size=184 \[ -\frac {6 B^2 n^2 (c+d x) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{(a+b x) (b c-a d)}-\frac {3 B n (c+d x) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^2}{(a+b x) (b c-a d)}-\frac {(c+d x) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^3}{(a+b x) (b c-a d)}-\frac {6 B^3 n^3 (c+d x)}{(a+b x) (b c-a d)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.31, antiderivative size = 360, normalized size of antiderivative = 1.96, number of steps used = 11, number of rules used = 3, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {6742, 2490, 32} \[ -\frac {3 A^2 B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (b c-a d)}-\frac {3 A^2 B n}{b (a+b x)}-\frac {A^3}{b (a+b x)}-\frac {3 A B^2 (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (b c-a d)}-\frac {6 A B^2 n (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (b c-a d)}-\frac {6 A B^2 n^2}{b (a+b x)}-\frac {6 B^3 n^2 (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (b c-a d)}-\frac {B^3 (c+d x) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (b c-a d)}-\frac {3 B^3 n (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x) (b c-a d)}-\frac {6 B^3 n^3}{b (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 32
Rule 2490
Rule 6742
Rubi steps
\begin {align*} \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{(a+b x)^2} \, dx &=\int \left (\frac {A^3}{(a+b x)^2}+\frac {3 A^2 B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2}+\frac {3 A B^2 \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2}+\frac {B^3 \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2}\right ) \, dx\\ &=-\frac {A^3}{b (a+b x)}+\left (3 A^2 B\right ) \int \frac {\log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx+\left (3 A B^2\right ) \int \frac {\log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx+B^3 \int \frac {\log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx\\ &=-\frac {A^3}{b (a+b x)}-\frac {3 A^2 B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {3 A B^2 (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {B^3 (c+d x) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}+\left (3 A^2 B n\right ) \int \frac {1}{(a+b x)^2} \, dx+\left (6 A B^2 n\right ) \int \frac {\log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx+\left (3 B^3 n\right ) \int \frac {\log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx\\ &=-\frac {A^3}{b (a+b x)}-\frac {3 A^2 B n}{b (a+b x)}-\frac {3 A^2 B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {6 A B^2 n (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {3 A B^2 (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {3 B^3 n (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {B^3 (c+d x) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}+\left (6 A B^2 n^2\right ) \int \frac {1}{(a+b x)^2} \, dx+\left (6 B^3 n^2\right ) \int \frac {\log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(a+b x)^2} \, dx\\ &=-\frac {A^3}{b (a+b x)}-\frac {3 A^2 B n}{b (a+b x)}-\frac {6 A B^2 n^2}{b (a+b x)}-\frac {3 A^2 B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {6 A B^2 n (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {6 B^3 n^2 (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {3 A B^2 (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {3 B^3 n (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {B^3 (c+d x) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}+\left (6 B^3 n^3\right ) \int \frac {1}{(a+b x)^2} \, dx\\ &=-\frac {A^3}{b (a+b x)}-\frac {3 A^2 B n}{b (a+b x)}-\frac {6 A B^2 n^2}{b (a+b x)}-\frac {6 B^3 n^3}{b (a+b x)}-\frac {3 A^2 B (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {6 A B^2 n (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {6 B^3 n^2 (c+d x) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {3 A B^2 (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {3 B^3 n (c+d x) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}-\frac {B^3 (c+d x) \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )}{(b c-a d) (a+b x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.79, size = 524, normalized size = 2.85 \[ \frac {-3 B d n (a+b x) \log (a+b x) \left (2 B (A+B n) \log \left (e (a+b x)^n (c+d x)^{-n}\right )+2 B n \log (c+d x) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A+B n\right )+B^2 \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )+A^2+2 A B n+B^2 n^2 \log ^2(c+d x)+2 B^2 n^2\right )+3 B d n (a+b x) \log (c+d x) \left (2 B (A+B n) \log \left (e (a+b x)^n (c+d x)^{-n}\right )+B^2 \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )+A^2+2 A B n+2 B^2 n^2\right )-(b c-a d) \left (3 B \left (A^2+2 A B n+2 B^2 n^2\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )+3 B^2 (A+B n) \log ^2\left (e (a+b x)^n (c+d x)^{-n}\right )+B^3 \log ^3\left (e (a+b x)^n (c+d x)^{-n}\right )+A^3+3 A^2 B n+6 A B^2 n^2+6 B^3 n^3\right )+3 B^2 d n^2 (a+b x) \log ^2(a+b x) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A+B n \log (c+d x)+B n\right )+3 B^2 d n^2 (a+b x) \log ^2(c+d x) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A+B n\right )+B^3 d n^3 (a+b x) \log ^3(c+d x)-B^3 d n^3 (a+b x) \log ^3(a+b x)}{b (a+b x) (b c-a d)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.92, size = 825, normalized size = 4.48 \[ -\frac {A^{3} b c - A^{3} a d + 6 \, {\left (B^{3} b c - B^{3} a d\right )} n^{3} + {\left (B^{3} b d n^{3} x + B^{3} b c n^{3}\right )} \log \left (b x + a\right )^{3} - {\left (B^{3} b d n^{3} x + B^{3} b c n^{3}\right )} \log \left (d x + c\right )^{3} + {\left (B^{3} b c - B^{3} a d\right )} \log \relax (e)^{3} + 6 \, {\left (A B^{2} b c - A B^{2} a d\right )} n^{2} + 3 \, {\left (B^{3} b c n^{3} + A B^{2} b c n^{2} + {\left (B^{3} b d n^{3} + A B^{2} b d n^{2}\right )} x + {\left (B^{3} b d n^{2} x + B^{3} b c n^{2}\right )} \log \relax (e)\right )} \log \left (b x + a\right )^{2} + 3 \, {\left (B^{3} b c n^{3} + A B^{2} b c n^{2} + {\left (B^{3} b d n^{3} + A B^{2} b d n^{2}\right )} x + {\left (B^{3} b d n^{3} x + B^{3} b c n^{3}\right )} \log \left (b x + a\right ) + {\left (B^{3} b d n^{2} x + B^{3} b c n^{2}\right )} \log \relax (e)\right )} \log \left (d x + c\right )^{2} + 3 \, {\left (A B^{2} b c - A B^{2} a d + {\left (B^{3} b c - B^{3} a d\right )} n\right )} \log \relax (e)^{2} + 3 \, {\left (A^{2} B b c - A^{2} B a d\right )} n + 3 \, {\left (2 \, B^{3} b c n^{3} + 2 \, A B^{2} b c n^{2} + A^{2} B b c n + {\left (B^{3} b d n x + B^{3} b c n\right )} \log \relax (e)^{2} + {\left (2 \, B^{3} b d n^{3} + 2 \, A B^{2} b d n^{2} + A^{2} B b d n\right )} x + 2 \, {\left (B^{3} b c n^{2} + A B^{2} b c n + {\left (B^{3} b d n^{2} + A B^{2} b d n\right )} x\right )} \log \relax (e)\right )} \log \left (b x + a\right ) - 3 \, {\left (2 \, B^{3} b c n^{3} + 2 \, A B^{2} b c n^{2} + A^{2} B b c n + {\left (B^{3} b d n^{3} x + B^{3} b c n^{3}\right )} \log \left (b x + a\right )^{2} + {\left (B^{3} b d n x + B^{3} b c n\right )} \log \relax (e)^{2} + {\left (2 \, B^{3} b d n^{3} + 2 \, A B^{2} b d n^{2} + A^{2} B b d n\right )} x + 2 \, {\left (B^{3} b c n^{3} + A B^{2} b c n^{2} + {\left (B^{3} b d n^{3} + A B^{2} b d n^{2}\right )} x + {\left (B^{3} b d n^{2} x + B^{3} b c n^{2}\right )} \log \relax (e)\right )} \log \left (b x + a\right ) + 2 \, {\left (B^{3} b c n^{2} + A B^{2} b c n + {\left (B^{3} b d n^{2} + A B^{2} b d n\right )} x\right )} \log \relax (e)\right )} \log \left (d x + c\right ) + 3 \, {\left (A^{2} B b c - A^{2} B a d + 2 \, {\left (B^{3} b c - B^{3} a d\right )} n^{2} + 2 \, {\left (A B^{2} b c - A B^{2} a d\right )} n\right )} \log \relax (e)}{a b^{2} c - a^{2} b d + {\left (b^{3} c - a b^{2} d\right )} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A\right )}^{3}}{{\left (b x + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 20.96, size = 69354, normalized size = 376.92 \[ \text {output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 2.16, size = 1129, normalized size = 6.14 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 6.06, size = 474, normalized size = 2.58 \[ -\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )\,\left (\frac {3\,B\,b\,d\,A^2\,x^2+3\,B\,\left (a\,d+b\,c\right )\,A^2\,x+3\,B\,a\,c\,A^2}{b\,{\left (a+b\,x\right )}^2\,\left (c+d\,x\right )}+\frac {6\,d\,\left (n\,B^3+A\,B^2\right )\,\left (b^2\,n\,x^2\,\left (a\,d-b\,c\right )+\frac {a\,b\,c\,n\,\left (a\,d-b\,c\right )}{d}+\frac {b\,n\,x\,\left (a\,d+b\,c\right )\,\left (a\,d-b\,c\right )}{d}\right )}{b^2\,\left (a\,d-b\,c\right )\,{\left (a+b\,x\right )}^2\,\left (c+d\,x\right )}\right )-\frac {A^3+3\,A^2\,B\,n+6\,A\,B^2\,n^2+6\,B^3\,n^3}{x\,b^2+a\,b}-{\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )}^2\,\left (\frac {3\,A\,B^2}{x\,b^2+a\,b}+\frac {3\,B^3\,n}{x\,b^2+a\,b}-\frac {3\,d\,\left (n\,B^3+A\,B^2\right )}{b\,\left (a\,d-b\,c\right )}\right )-{\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )}^3\,\left (\frac {B^3}{b\,\left (a+b\,x\right )}-\frac {B^3\,d}{b\,\left (a\,d-b\,c\right )}\right )-\frac {B\,d\,n\,\mathrm {atan}\left (\frac {B\,d\,n\,\left (\frac {c\,b^2+a\,d\,b}{b}+2\,b\,d\,x\right )\,\left (A^2+2\,A\,B\,n+2\,B^2\,n^2\right )\,3{}\mathrm {i}}{\left (a\,d-b\,c\right )\,\left (3\,d\,A^2\,B\,n+6\,d\,A\,B^2\,n^2+6\,d\,B^3\,n^3\right )}\right )\,\left (A^2+2\,A\,B\,n+2\,B^2\,n^2\right )\,6{}\mathrm {i}}{b\,\left (a\,d-b\,c\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________